package com.bjsxt.pojo;

import java.util.Objects;

public class HostCondition {
    private String hname;
    private String status;
    private String strong;
    private String hpstart;
    private String hpdiscount;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HostCondition that = (HostCondition) o;
        return Objects.equals(hname, that.hname) && Objects.equals(status, that.status) && Objects.equals(strong, that.strong) && Objects.equals(hpstart, that.hpstart) && Objects.equals(hpdiscount, that.hpdiscount);
    }

    @Override
    public int hashCode() {
        return Objects.hash(hname, status, strong, hpstart, hpdiscount);
    }

    @Override
    public String toString() {
        return "HostCondition{" +
                "hname='" + hname + '\'' +
                ", status='" + status + '\'' +
                ", strong='" + strong + '\'' +
                ", hpstart='" + hpstart + '\'' +
                ", hpdiscount='" + hpdiscount + '\'' +
                '}';
    }

    public String getHname() {
        return hname;
    }

    public void setHname(String hname) {
        this.hname = hname;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStrong() {
        return strong;
    }

    public void setStrong(String strong) {
        this.strong = strong;
    }

    public String getHpstart() {
        return hpstart;
    }

    public void setHpstart(String hpstart) {
        this.hpstart = hpstart;
    }

    public String getHpdiscount() {
        return hpdiscount;
    }

    public void setHpdiscount(String hpdiscount) {
        this.hpdiscount = hpdiscount;
    }

    public HostCondition() {
    }

    public HostCondition(String hname, String status, String strong, String hpstart, String hpdiscount) {
        this.hname = hname;
        this.status = status;
        this.strong = strong;
        this.hpstart = hpstart;
        this.hpdiscount = hpdiscount;
    }
}
